/*
 */

package com.railway.news.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import cn.org.rapid_framework.page.Page;

import com.railway.news.model.Category;
import com.railway.news.model.CategoryUserLink;
import com.railway.news.vo.query.CategoryQuery;


public interface ICategoryDao{

	public Object getById(java.lang.String id);
	
	public void deleteById(java.lang.String id);
	
	/** 插入数据 */
	public void save(Category entity);
	
	/** 更新数据 */
	public void update(Category entity);

	/** 根据id检查是否插入或是更新数据 */
	public void saveOrUpdate(Category entity);

	public boolean isUnique(Category entity, String uniquePropertyNames);
	
	public List<Category> findAll();

	public List<Category> findByType(String type);
	
	public void deleteCategoryUserLinkById(String id);
	
	public Page findPage(CategoryQuery query);
	
	public void saveCategoryUserLinkBatch(List list) ;

	public List getPermitCategoriesByUser(CategoryUserLink culinkquery);

	public void removeLinkByUserId(String userId);
	
	public void saveCategoryUserLink(CategoryUserLink entity) ;
	
	
	public void deleteCategoryUserLinkByCatId(String id);

	public List getUsernamesByMap(Map map);

	

}
